﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LinqToBing.Bing.Wrapper.Interfaces;

namespace LinqToBing.Bing.Wrapper.Search
{
    public class SearchRequest : SearchRequestBase
    {
        public override ISearchResult Execute()
        {
            ISearchResult Result = null;
            if (CanExecute)
            {
                Result = SearchHelper.ExecuteSearch(this);
            }
            else
            {
                throw new Exception("Cannot Execute Wrong Request.");
            }
            return Result;
        }
    }
}
